package com.tiny.web.dao;

import com.tiny.web.modal.Question;
import com.tiny.web.modal.QuestionExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface QuestionMapper {
    int countByExample(QuestionExample example);
    int deleteByExample(QuestionExample example);
    int deleteByPrimaryKey(Integer id);
    int insert(Question record);
    int insertSelective(Question record);
    List<Question> selectByExampleWithBLOBs(QuestionExample example);
    List<Question> selectByExample(QuestionExample example);
    Question selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Question record, @Param("example") QuestionExample example);

    int updateByExampleWithBLOBs(@Param("record") Question record, @Param("example") QuestionExample example);

    int updateByExample(@Param("record") Question record, @Param("example") QuestionExample example);

    int updateByPrimaryKeySelective(Question record);
    int updateByPrimaryKeyWithBLOBs(Question record);
    int updateByPrimaryKey(Question record);
}